<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/inc/taglib.inc" %>
<%@ include file="/WEB-INF/inc/script.inc" %>
<!DOCTYPE html>
<html>
<meta http-equiv="x-frame-options" ,content="SAMEORIGIN" />
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<base href="${base}">
    <title>中金通 | 项目管理</title>
    
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="js/plugins/jquery-ui/jquery-ui.min.css" rel="stylesheet">
    <!-- FooTable -->
   <!--  <link href="css/plugins/footable/footable.core.css" rel="stylesheet"> -->
    <!-- Data Tables -->
    <link href="css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="css/plugins/dataTables/dataTables.responsive.css" rel="stylesheet">
    <link href="css/plugins/dataTables/dataTables.tableTools.min.css" rel="stylesheet">
    <link href="css/plugins/jsTree/style.min.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">

    <link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet">
	 <style type="text/css">
		.modal{
		  z-index: 16 !important;
		}
		.modal-backdrop {
		  z-index: 15 !important;
		}
		.detailText
		{
		 padding:6px 12px; 
		}
	</style>
</head>

<body>

    <div id="wrapper">

    	<!-- 左侧菜单 -->
        <jsp:include page="/WEB-INF/jsp/common/main-menu.jsp"></jsp:include>

        <div id="page-wrapper" class="gray-bg">
        <div class="row border-bottom">
        <!-- 头部工具栏区 -->
        <jsp:include page="/WEB-INF/jsp/common/main-header.jsp"></jsp:include>
        </div>
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>项目管理</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="common/platform">Home</a>
                        </li>
                        <li>
                            <a href="project/nonInStoreList">未入库项目</a>
                        </li>
                        <li class="active">
                            <strong>项目列表</strong>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>

        <div class="row" style="margin-top:10px;">
        <div class="col-md-12">
        	<div class="tabs-container">
	        <ul class="nav nav-tabs">
	            <li class="active">
					<a href="project/nonInStoreList">
						 未入库列表
					</a>
				</li>
	        </ul>
		<div class="tab-content">
              <div class="tab-pane active">
                  <div class="panel-body">
                      <div class="wrapper wrapper-content animated fadeInRight ecommerce">
		<form action="list" id="queryForm" name="queryForm" method="post" class="myform">
            <div class="ibox-content m-b-sm">
                <div class="row">
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="control-label" for="order_id">项目名称</label>
                            <input type="text" id="order_id" name="name" value="" placeholder="项目名称" class="form-control">
                        </div>
                    </div>
                   <div class="col-sm-4">
                        <div class="form-group">
                            <label class="control-label" for="date_added">录入时间</label>
                            <div class="input-group date">
                                <span class="input-group-addon"><i class="fa fa-calendar"></i></span><input id="date_added" type="text" name="createTime" class="form-control" data-date-format="yyyy-mm-dd"  >
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-4">
                        <div class="form-group">
                            <label class="control-label" for="depart">状态</label>
                            <select class="form-control m-b" name="state" >
	                            <option value="">所有</option>
	                           	<option value="1">录入中</option>
	                           	<option value="2">申请立项</option>
	                           	<option value="3">立项风控审核</option>
	                           	<option value="4">尽调中</option>
	                           	<option value="5">初审中</option>
	                           	<option value="6">过初审</option>
	                           	<option value="7">复审中</option>
	                           	<option value="8">过复审</option>
	                           	<option value="9">终审中</option>
	                           	<option value="100">已否决</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="row">
                     <div class="col-sm-4">
                        <div class="form-group">
                            <label class="control-label" for="customer">企业名称</label>
                            <input type="text" name="enterpriseName" value=""  placeholder="企业名称"  class="form-control">
                        </div>
                    </div>
                    	<div class="col-sm-4">
	                     <div class="form-group">
	                            <label class="control-label" for="depart">项目类型</label>
	                            <select class="form-control m-b" name="type" >
		                            <option value="">所有</option>
		                           	<option value="1">债券</option>
		                           	<option value="2">股权</option>
	                            </select>
	                        </div>
                        </div>
                </div>
				<p class="col-sm-offset-5">
					<button type="button" id="btn_query" class="btn btn-primary">查询</button>
					<button type="reset" class="btn btn-outline btn-default" id="btn_reset" >重置</button>
                </p>
            </div>
		</form>
	            <div class="row">
	                <div class="col-lg-12">
							 <div class="ibox float-e-margins">
		                        <div class="ibox-content">
		                            <table id="modelEditable"  style="width:100%;" class="table table-striped table-bordered table-hover" >
		                                <thead>
		                                <tr>
		                                    <th style="background-color:white;" class="sorting_disabled">项目编号</th>
		                                    <th style="background-color:white;">项目名称</th>
		                                    <th style="background-color:white;">项目类型</th>
		                                    <th style="background-color:white;">企业</th>
		                                    <th style="background-color:white;">项目金额(元)</th>
		                                    <th style="background-color:white;">录入时间</th>
		                                    <th style="background-color:white;">投资部</th>
		                                    <th style="background-color:white;">状态</th>
		                                    <th style="background-color:white;">操作</th>
		                                </tr>
		                                </thead>
		                                <tbody>
		                                </tbody>
		                            </table>
		                        </div>
		                    </div>
	                </div>
	            </div>
		  </div>
	     </div>
	    </div>
	   </div>
	  </div>
	</div>
		
		<!--  投资部门主管审批项目  -->
		 <button class="btn btn-primary"  type="button" id="approveProject" data-toggle="modal" data-target="#approveProjectModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="approveProjectModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title" id="model_name">审批项目</h4>
                    </div>
                    <form id="approve_project_form">
	                     <div class="modal-body" style="height:300px;">
	                    	<div class="form-group"><label>项目名称:</label>
	                    		&nbsp;&nbsp;&nbsp;<span id="projectName" ></span>
	                    	</div>
	                    	 <div class="form-group">
	                            <label class="control-label"  id="select_name">是否立项</label>
	                            <select class="form-control m-b" name="result" >
		                           	<option value="1" id="select_yes" selected>是</option>
		                           	<option value="2" id="select_no">否</option>
	                            </select>
	                        </div>
							<div class="form-group">
								<label class=" control-label" id="sugesst_name">审批意见&nbsp;&nbsp;&nbsp;<font color="red">(请务必在审批前设置尽调小组负责人,否则立项流程将无法完成)</font></label><br/>
	                            <textarea type="text" style="resize:none;height:120px;width:540px;" name="suggestion"  id="approve_project_suggestion" class="form-control"></textarea>
	                        </div>          
	                    	<input style="display:none;"  name="eventId"  id="approve_project_eventId" >
	                    </div>
                    </form>
                    <div class="modal-footer">
                   		<div style="display:none;" id="approve_project_err_span" class="alert alert-danger display-hide" >
							审批意见不能为空.
						</div>
                        <button type="button" class="btn btn-white" id="dsimiss_deal_emp" data-dismiss="modal">取消</button>
                        <button type="button" id="btn_approve_project_new" class="btn btn-primary">确定</button>
                    </div>
                </div>
        	</div>
        </div>
        
        
        <!--  投资部门主管查看尽调小组  -->
		 <button class="btn btn-primary"  type="button" id="group" data-toggle="modal" data-target="#groupModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="groupModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog"  style="height:600px;">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">设置尽调小组</h4><font color="red">(请务必设置尽调小组负责人,否则立项流程将无法完成)</font>
                    </div>
                    <form id="group_project_form">
	                     <div class="modal-body"  style="height:500px;">
			                     <div class="modal-body">
			                    	<div class="form-group"><label>理财师</label>
			                    		<input id="tags" placeholder="请输入理财师姓名或工号" class="ui-autocomplete-input form-control"  autocomplete="off">
			                    	</div>
			                    	<label>理财师姓名:&nbsp;&nbsp;&nbsp;<span id="employeeName" ></span></label><br/>
			                    	<label>理财师工号:&nbsp;&nbsp;&nbsp;<span id="employeeNo" ></span></label>
			                    	<input style="display:none;" id="employeeId" value="" >
			                    	<div>
				                        <button type="button" id="btn_deal_emp_new" class="btn btn-primary">新增</button>
				                    </div>
			                    </div>
	                    	<div class="row"  >
			                    <div class="col-sm-12">
			                        <div class="form-group">
			                            	<div class="ibox-content" style="height:180px;overflow-y:auto;">
					                            <table id="group_options_table"  class="table table-striped table-bordered table-hover myTable">
					                                <thead>
						                                <tr>
						                                    <th style="background-color:white;font-size:14px;" class="sorting_disabled">姓名</th>
						                                    <th style="background-color:white;font-size:14px;">联系方式</th>
						                                    <th style="background-color:white;font-size:14px;">是否为负责人</th>
						                                    <th style="background-color:white;font-size:14px;">操作</th>
						                                </tr>
					                                </thead>
					                                <tbody id="group_option_body" style="font-size:13px;"></tbody>
					                            </table>
					                        </div>
			                        </div>
			                    </div>
			                </div>
	                    	<input style="display:none;"  name="eventId"  id="group_project_eventId" >
	                    	<input style="display:none;"  name="eventId"  id="approve_group_project_id" >
	                    </div>
                    </form>
                </div>
        	</div>
        </div>
        
        <!-- 立项风控审核  -->
        <button class="btn btn-primary"  type="button" id="windControl" data-toggle="modal" data-target="#windControlModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="windControlModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">立项风控审核</h4>
                    </div>
                    <form id="windControl_project_form">
	                     <div class="modal-body" style="height:300px;">
	                    	<div class="form-group"><label>项目名称:</label>
	                    		&nbsp;&nbsp;&nbsp;<span id="windprojectName" ></span>
	                    	</div>
	                    	 <div class="form-group">
	                            <label class="control-label" >是否通过</label>
	                            <select class="form-control m-b" name="result" >
		                           	<option value="1">是</option>
		                           	<option value="2">否</option>
	                            </select>
	                        </div>
							<div class="form-group">
								<label class=" control-label">审批意见</label><br/>
	                            <textarea type="text" style="resize:none;height:120px;width:540px;" name="suggestion"  id="windControl_project_suggestion" class="form-control"></textarea>
	                        </div>                       
	                    	<input style="display:none;"  name="eventId"  id="windControl_project_eventId" >
	                    </div>
                    </form>
                    <div class="modal-footer">
                   		<div style="display:none;" id="windControl_err_span" class="alert alert-danger display-hide" >
							审批意见不能为空.
						</div>
                        <button type="button" class="btn btn-white" id="dsimiss_deal_emp" data-dismiss="modal">取消</button>
                        <button type="button" id="btn_windControl_project_new" class="btn btn-primary">确定</button>
                    </div>
                </div>
        	</div>
        </div>
        
        <!-- 尽调小组负责人尽调完成  -->
        <button class="btn btn-primary"  type="button" id="carefulComplete" data-toggle="modal" data-target="#carefulCompleteModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="carefulCompleteModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">确认尽调完成</h4>
                    </div>
                    <form id="carefulComplete_project_form">
	                     <div class="modal-body" style="height:300px;">
	                    	<div class="form-group"><label>项目名称:</label>
	                    		&nbsp;&nbsp;&nbsp;<span id="carefulCompleteName" ></span>
	                    	</div>
	                    	 <div class="form-group">
	                            <label class="control-label" >操作</label>
	                            <select class="form-control m-b" name="result" >
		                           	<option value="1">提交至初审</option>
		                           	<option value="2">直接否决</option>
	                            </select>
	                        </div>
							<div class="form-group">
								<label class=" control-label">尽调意见</label><br/>
	                            <textarea type="text" style="resize:none;height:120px;width:540px;" name="suggestion"  id="carefulComplete_project_suggestion" class="form-control"></textarea>
	                        </div>                       
	                    	<input style="display:none;"  name="eventId"  id="carefulComplete_project_eventId" >
	                    </div>
                    </form>
                    <div class="modal-footer">
                   		<div style="display:none;" id="carefulComplete_err_span" class="alert alert-danger display-hide" >
							尽调意见不能为空.
						</div>
                        <button type="button" class="btn btn-white" id="dsimiss_deal_emp" data-dismiss="modal">取消</button>
                        <button type="button" id="btn_carefulComplete_project_new" class="btn btn-primary">确定</button>
                    </div>
                </div>
        	</div>
        </div>
        
         <!-- 初审委员会个人表决 -->
        <button class="btn btn-primary"  type="button" id="vote" data-toggle="modal" data-target="#voteModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="voteModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">个人表决</h4>
                    </div>
                    <form id="vote_project_form">
	                     <div class="modal-body" style="height:300px;">
	                    	<div class="form-group"><label>项目名称:</label>
	                    		&nbsp;&nbsp;&nbsp;<span id="voteName" ></span>
	                    	</div>
	                    	 <div class="form-group">
	                            <label class="control-label" >操作</label>
	                            <select class="form-control m-b" name="result" >
		                           	<option value="1">同意</option>
		                           	<option value="2">不同意</option>
	                            </select>
	                        </div>
							<div class="form-group">
								<label class=" control-label">原因</label><br/>
	                            <textarea type="text" style="resize:none;height:120px;width:540px;" name="suggestion"  id="vote_project_suggestion" class="form-control"></textarea>
	                        </div>                       
	                    	<input style="display:none;"  name="eventId"  id="vote_project_eventId" >
	                    </div>
                    </form>
                    <div class="modal-footer">
                   		<div style="display:none;" id="vote_err_span" class="alert alert-danger display-hide" >
							表决原因不能为空.
						</div>
                        <button type="button" class="btn btn-white" id="dsimiss_deal_emp" data-dismiss="modal">取消</button>
                        <button type="button" id="btn_vote_project_new" class="btn btn-primary">确定</button>
                    </div>
                </div>
        	</div>
        </div>
        
        <!-- 初审委员会负责人提交初审结果 -->
        <button class="btn btn-primary"  type="button" id="firstTrial" data-toggle="modal" data-target="#firstTrialModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="firstTrialModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog"  style="height:600px;">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">初审结果</h4>
                    </div>
                    <form id="firstTrial_project_form">
	                     <div class="modal-body"  style="height:500px;">
	                    	<div class="form-group"><label>项目名称:</label>
	                    		&nbsp;&nbsp;&nbsp;<span id="firstTrialName" ></span>
	                    	</div>
	                    	<div class="row"  >
			                    <div class="col-sm-12">
			                        <div class="form-group">
			                            <label class="control-label" for="date_added">初审委员会表决情况:</label>
			                            	<div class="ibox-content" style="height:180px;overflow-y:auto;">
					                            <table id="detail_options_table"  class="table table-striped table-bordered table-hover myTable">
					                                <thead>
						                                <tr>
						                                    <th style="background-color:white;font-size:14px;" class="sorting_disabled">姓名</th>
						                                    <th style="background-color:white;font-size:14px;">时间</th>
						                                    <th style="background-color:white;font-size:14px;">个人表决</th>
						                                    <th style="background-color:white;font-size:14px;">原因</th>
						                                </tr>
					                                </thead>
					                                <tbody id="detail_option_body" style="font-size:13px;"></tbody>
					                            </table>
					                        </div>
			                        </div>
			                    </div>
			                </div>
	                    	 <div class="form-group">
	                            <label class="control-label" >是否通过初审</label>
	                            <select class="form-control m-b" name="result" >
		                           	<option value="1">同意</option>
		                           	<option value="2">不同意</option>
	                            </select>
	                        </div>
							<div class="form-group">
								<label class=" control-label">会议纪要</label><br/>
	                            <textarea type="text" style="resize:none;height:120px;width:540px;" name="suggestion"  id="firstTrial_project_suggestion" class="form-control"></textarea>
	                        </div>                       
	                    	<input style="display:none;"  name="eventId"  id="firstTrial_project_eventId" >
	                    </div>
                    </form>
                    <div class="modal-footer">
                   		<div style="display:none;" id="firstTrial_err_span" class="alert alert-danger display-hide" >
							会议纪要不能为空.
						</div>
                        <button type="button" class="btn btn-white" id="dsimiss_deal_emp" data-dismiss="modal">取消</button>
                        <button type="button" id="btn_firstTrial_project_new" class="btn btn-primary">确定</button>
                    </div>
                </div>
        	</div>
        </div>
        
        
        <!-- 复审委员会个人决议 -->
        <button class="btn btn-primary"  type="button" id="decision" data-toggle="modal" data-target="#decisionModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="decisionModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">个人决议</h4>
                    </div>
                    <form id="decision_project_form">
	                     <div class="modal-body" style="height:300px;">
	                    	<div class="form-group"><label>项目名称:</label>
	                    		&nbsp;&nbsp;&nbsp;<span id="decisionName" ></span>
	                    	</div>
	                    	 <div class="form-group">
	                            <label class="control-label" >操作</label>
	                            <select class="form-control m-b" name="result" >
		                           	<option value="1">同意</option>
		                           	<option value="2">不同意</option>
	                            </select>
	                        </div>
							<div class="form-group">
								<label class=" control-label">原因</label><br/>
	                            <textarea type="text" style="resize:none;height:120px;width:540px;" name="suggestion"  id="decision_project_suggestion" class="form-control"></textarea>
	                        </div>                       
	                    	<input style="display:none;"  name="eventId"  id="decision_project_eventId" >
	                    </div>
                    </form>
                    <div class="modal-footer">
                   		<div style="display:none;" id="decision_err_span" class="alert alert-danger display-hide" >
							决议原因不能为空.
						</div>
                        <button type="button" class="btn btn-white" id="dsimiss_deal_emp" data-dismiss="modal">取消</button>
                        <button type="button" id="btn_decision_project_new" class="btn btn-primary">确定</button>
                    </div>
                </div>
        	</div>
        </div>
        
        <!-- 复审委员会负责人提交终审结果 -->
        <button class="btn btn-primary"  type="button" id="reexamine" data-toggle="modal" data-target="#reexamineModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="reexamineModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog"  style="height:600px;">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">复审结果</h4>
                    </div>
                    <form id="reexamine_project_form">
	                     <div class="modal-body"  style="height:500px;">
	                    	<div class="form-group"><label>项目名称:</label>
	                    		&nbsp;&nbsp;&nbsp;<span id="reexamineName" ></span>
	                    	</div>
	                    	<div class="row"  >
			                    <div class="col-sm-12">
			                        <div class="form-group">
			                            <label class="control-label" for="date_added">复审委员会表决情况:</label>
			                            	<div class="ibox-content" style="height:180px;overflow-y:auto;">
					                            <table id="reexamine_options_table"  class="table table-striped table-bordered table-hover myTable">
					                                <thead>
						                                <tr>
						                                    <th style="background-color:white;font-size:14px;" class="sorting_disabled">姓名</th>
						                                    <th style="background-color:white;font-size:14px;">时间</th>
						                                    <th style="background-color:white;font-size:14px;">个人表决</th>
						                                    <th style="background-color:white;font-size:14px;">原因</th>
						                                </tr>
					                                </thead>
					                                <tbody id="reexamine_option_body" style="font-size:13px;"></tbody>
					                            </table>
					                        </div>
			                        </div>
			                    </div>
			                </div>
	                    	 <div class="form-group">
	                            <label class="control-label" >是否通过复审</label>
	                            <select class="form-control m-b" name="result" >
		                           	<option value="1">同意</option>
		                           	<option value="2">不同意</option>
	                            </select>
	                        </div>
							<div class="form-group">
								<label class=" control-label">会议纪要</label><br/>
	                            <textarea type="text" style="resize:none;height:120px;width:540px;" name="suggestion"  id="reexamine_project_suggestion" class="form-control"></textarea>
	                        </div>                       
	                    	<input style="display:none;"  name="eventId"  id="reexamine_project_eventId" >
	                    </div>
                    </form>
                    <div class="modal-footer">
                   		<div style="display:none;" id="reexamine_err_span" class="alert alert-danger display-hide" >
							会议纪要不能为空.
						</div>
                        <button type="button" class="btn btn-white" id="dsimiss_deal_emp" data-dismiss="modal">取消</button>
                        <button type="button" id="btn_reexamine_project_new" class="btn btn-primary">确定</button>
                    </div>
                </div>
        	</div>
        </div>
        
        
         <!-- 最终审批 -->
        <button class="btn btn-primary"  type="button" id="lastInstance" data-toggle="modal" data-target="#lastInstanceModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="lastInstanceModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">终审结果</h4>
                    </div>
                    <form id="lastInstance_project_form">
	                     <div class="modal-body" style="height:300px;">
	                    	<div class="form-group"><label>项目名称:</label>
	                    		&nbsp;&nbsp;&nbsp;<span id="lastInstanceName" ></span>
	                    	</div>
	                    	 <div class="form-group">
	                            <label class="control-label" >是否通过终审</label>
	                            <select class="form-control m-b" name="result" >
		                           	<option value="1">同意</option>
		                           	<option value="2">不同意</option>
	                            </select>
	                        </div>
							<div class="form-group">
								<label class=" control-label">原因</label><br/>
	                            <textarea type="text" style="resize:none;height:120px;width:540px;" name="suggestion"  id="lastInstance_project_suggestion" class="form-control"></textarea>
	                        </div>                       
	                    	<input style="display:none;"  name="eventId"  id="lastInstance_project_eventId" >
	                    </div>
                    </form>
                    <div class="modal-footer">
                   		<div style="display:none;" id="lastInstance_err_span" class="alert alert-danger display-hide" >
							原因不能为空.
						</div>
                        <button type="button" class="btn btn-white" id="dsimiss_deal_emp" data-dismiss="modal">取消</button>
                        <button type="button" id="btn_lastInstance_project_new" class="btn btn-primary">确定</button>
                    </div>
                </div>
        	</div>
        </div>
        
         <!-- 上传尽调文件 -->
        <button class="btn btn-primary"  type="button" id="report" data-toggle="modal" data-target="#reportModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="reportModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">上传尽调文件</h4>
                    </div>
                    <form id="report_project_form">
	                     <div class="modal-body" style="height:300px;">
	                    	 <div class="form-group">
						          <label class="col-sm-4 control-label">上传文件:</label>
						          <div class="col-sm-8" >
		 				          	   <input id="relatedFile" class="btn btn-outline btn-primary" style="width:260px;" type="file" name="relatedFile" accept=".xls,.xlsx,.doc,.docx,.txt,.pdf,.ppt,.pptx">
						          	   <input style="margin-left:280px;margin-top:-36px;" class="btn btn-outline btn-primary" type="button" value="上传" onclick="uploadReportFile()">
						          </div> 
						     </div>
						     <div class="row" id="customSet">
					                <div class="col-lg-12">
					                    <div class="ibox float-e-margins">
					                        <div class="ibox-content">
					                            <table id="modelEditable_report" class="table table-striped table-bordered table-hover">
					                                <thead>
						                               	 <tr>
						                                    <th>文件名</th>
						                                    <th>上传人</th>
						                                    <th>上传时间</th>
						                                    <th style="width:40px;">操作</th>
						                                </tr>
					                              	  </thead>
						                              <tbody>
						                              </tbody>
						                        </table>
					                        </div>
					                    </div>
					                </div>
					            </div> 
	                    	<input style="display:none;"  name="eventId"  id="report_project_eventId" >
	                    </div>
                    </form>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-white" id="dsimiss_deal_emp" data-dismiss="modal">关闭</button>
                    </div>
                </div>
        	</div>
        </div>
        
        <!-- 尽调文件重命名 -->
        <button class="btn btn-primary"  type="button" id="report_rename" data-toggle="modal" data-target="#reportRenameModal" style="display:none;"></button>
		 <div class="modal mymodal inmodal" id="reportRenameModal" tabindex="-1" role="dialog" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content animated fadeIn">
                        <div class="modal-header">
                        	<button type="button" class="close" data-dismiss="modal" id="deal_emp_miss"><span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
                            </button>
                            <h4 class="modal-title">尽调文件重命名</h4>
                    </div>
                    <form id="reportRename_project_form">
	                     <div class="modal-body" style="height:300px;">
		                     	<div class="form-group"><label>旧文件名:</label>
		                    		&nbsp;&nbsp;&nbsp;<span id="old_file_name" ></span>
		                    	</div>
		                    	<div class="form-group"><label>新文件名:</label>
		                    		&nbsp;&nbsp;&nbsp;<input  type="text" id="modify_file_name" placeholder="请输入文件名称" class="form-control"></input>
		                    	</div>
	                    		<input style="display:none;"  name="eventId"  id="project_attachment_id" >
	                    </div>
                    </form>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-white" id="dsimiss_rename_attachment" data-dismiss="modal">关闭</button>
                        <button type="button" id="btn_rename_project_attachment" class="btn btn-primary">确定</button>
                    </div>
                </div>
        	</div>
        </div>
        
        </div>
        <!-- 底部版权 -->
        <jsp:include page="/WEB-INF/jsp/common/main-footer.jsp"></jsp:include>

        </div>
        </div>



    <!-- Mainly scripts -->
   
    <script src="js/jquery-2.1.1.js"></script>
    <script src="js/plugins/validate/jquery.validate.min.js"></script>
    <script src="js/plugins/jeditable/jquery.jeditable.js"></script>
	<script src="js/jquery.serialize-object.min.js" type="text/javascript"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>

    <!-- Custom and plugin javascript -->
    <script src="js/inspinia.js"></script>
    <script src="js/plugins/pace/pace.min.js"></script>
    <script src="js/plugins/jquery-ui/jquery-ui.min.js"></script>
	<script src="js/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
    
    <!-- Data picker -->
    <script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>
    
    <!-- Data Tables -->
    <script src="js/plugins/dataTables/jquery.dataTables.min.js"></script>
    <script src="js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="js/plugins/dataTables/dataTables.responsive.js"></script>
    <script src="js/plugins/dataTables/dataTables.tableTools.min.js"></script>
     <!-- 业务js -->
     <script src="js/ajaxfileupload.js"></script>
    <script src="js/plugins/jsTree/jstree.min.js"></script>
    <script src="js/project/nonInStoreList.js?v=${jsVersion}"></script>
    <script src="js/investor/utils.js?v=${jsVersion}"></script>
	<!-- FooTable -->
    <!-- Page-Level Scripts -->
    <script>
        $(document).ready(function() {
        	FlowProjectModule.init();
        	
        	ProjectReport.init();
        	
        	ProjectGroup.init();
        	
            $('#date_added').datepicker({
                todayBtn: "linked",
                keyboardNavigation: false,
                forceParse: false,
                calendarWeeks: true,
                autoclose: true
            });

        });

    </script>

</body>

</html>
